package uniandes.cupi2.sit.interfaz;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import java.awt.Dimension;
import javax.swing.JCheckBox;
import java.awt.Color;
import java.awt.Point;

public class prueba extends JPanel {

	private static final long serialVersionUID = 1L;
	
	 private Image imgFondo;

	private JCheckBox jCheckBox = null;

	private JCheckBox jCheckBox1 = null;

	/**
	 * This is the default constructor
	 */
	public prueba() {
		super();
		initialize();
		imgFondo = new ImageIcon("./data/imagenes/mapa.jpg").getImage();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(454, 200);
		this.setLayout(null);
		this.add(getJCheckBox(), null);
		this.add(getJCheckBox1(), null);
	}
	protected void paintComponent(Graphics g) {
		  g.drawImage(imgFondo,0,0,null);
		 }

	/**
	 * This method initializes jCheckBox	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBox() {
		if (jCheckBox == null) {
			jCheckBox = new JCheckBox();
			jCheckBox.setBackground(new Color(51, 204, 0));
			jCheckBox.setSize(new Dimension(21, 14));
			jCheckBox.setLocation(new Point(37, 78));
			
		}
		return jCheckBox;
	}

	/**
	 * This method initializes jCheckBox1	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBox1() {
		if (jCheckBox1 == null) {
			
			jCheckBox1 = new JCheckBox();
			jCheckBox1.setLocation(new Point(59, 81));
			jCheckBox1.setSize(new Dimension(19, 14));
			jCheckBox1.setBackground(new Color(51, 204, 0));
		}
		return jCheckBox1;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
